package com.chance.cc.crawler.prod.command.schedule.news.xhs.notes;

import com.chance.cc.crawler.core.CrawlerJob;
import com.chance.cc.crawler.prod.command.job.domain.news.xhs.notes.simple.XhsInitSimpleCrawlerSchedulerJob;
import com.chance.cc.crawler.prod.command.job.domain.news.xhs.notes.simple.XhsUserNotesSimpleCrawlerSchedulerJob;
import com.chance.cc.crawler.prod.command.schedule.CommonCrawlerJobSchedule;

/**
 * @author lt
 * @version 1.0
 * @date 2021-06-17 11:24:49
 * @email okprog@sina.com
 */
public class XhsSimpleCrawlerJobSchedule extends CommonCrawlerJobSchedule {

    public static void main(String[] args) {
//        publicCrawlerScheduleJob(XhsInitSimpleCrawlerSchedulerJob.crawlerScheduler());
        publicCrawlerScheduleJob(XhsUserNotesSimpleCrawlerSchedulerJob.crawlerScheduler());
    }


    public static void publicCrawlerScheduleJob(CrawlerJob crawlerJob){
        crawlerJobScheduleCommand_17.republishCrawlerJob(crawlerJob.generateCrawlerTriggerKey(),device_name_9);
    }

    public static void delCrawlerScheduleJob(CrawlerJob crawlerJob){
        crawlerJobScheduleCommand_17.deleteCrawlerJob(crawlerJob.generateCrawlerTriggerKey(),device_name_9);
    }
}
